<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/includes/common-import.jsp"%>

<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
<head>
	<meta charset="utf-8" />
	<title>${systemName }</title>
	<meta content="width=device-width, initial-scale=1.0" name="viewport" />
	<meta content="" name="description" />
	<meta content="" name="author" />
	<%@ include file="/WEB-INF/includes/common-component-edit.jsp"%>
	<script type="text/javascript" charset="utf-8" src="${resPath}ueditor1_3_6-utf8-jsp/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="${resPath}ueditor1_3_6-utf8-jsp/ueditor.all.min.js"> </script>
    <script type="text/javascript" charset="utf-8" src="${resPath}ueditor1_3_6-utf8-jsp/lang/zh-cn/zh-cn.js"></script>
</head>
<body class="page-header-fixed">
	<%@ include file="/WEB-INF/includes/header.jsp"%>
	<div class="page-container row-fluid">
		<%@ include file="/WEB-INF/includes/leftMenu.jsp"%>
		<div class="page-content">
			<div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">
						<h3 class="page-title">
						</h3>
					</div>
				</div>
				<!-- END PAGE HEADER-->
				<!-- BEGIN PAGE CONTENT-->
				<div class="row-fluid">

					<div class="span12">

						<div class="portlet box blue" id="form_wizard_1">
							<div class="portlet-title">
								<div class="caption">
									<i class="icon-reorder"></i>编辑
								</div>
							</div>

							<div class="portlet-body form">

								<form id="inputForm" class="form-horizontal" action="${basePath}message/${action}" method="post" >
									<input type="hidden" name="id" value="${message.id }"/>
									<input type="hidden" name="msgType" value="${message.msgType }" />
									<div class="alert alert-error ${empty MESSAGE ?'hide':'' }">
										<button class="close" data-dismiss="alert"></button>
										<span>${MESSAGE }</span>
									</div>
									
									<div class="control-group"> 
									   <label class="control-label"> 
									       标题：<span class="required">*</span> 
									   </label> 
									   <div class="controls"> 
									       <input name="title" class="span6 m-wrap required" type="text" value="${message.title} "> 
									   </div> 
									</div> 
									<div class="control-group"> 
									   <label class="control-label"> 
									       内容：<span class="required">*</span> 
									   </label> 
									   <div class="controls"> 
									       <script id="editor" name="msg" type="text/plain" style="width:100%;height:200px;">${message.msg}</script>
									    	   注：<img src="${resPath}ueditor1_3_6-utf8-jsp/fjsc.gif"/> 图标为附件上传，如需上传附件，请使用该功能进行上传文件。
									   </div> 
									   
									</div>
									<div class="form-actions clearfix">
										
										<button class="btn blue" type="submit"><i class="icon-ok"></i>提交</button>
										&nbsp;&nbsp;
										<a class="btn" onclick="cancle();">取消</a>
			
									</div>
								</form>
							</div>

						</div>

					</div>

				</div>
			</div>
		</div>
	</div>
	<script src="${resPath}media/js/app.js"></script>   
	<script type="text/javascript">
		var option = {
	        initialContent: '',
	        initialFrameWidth:"100%",  //初始化编辑器宽度,默认1000，可以设置成百分比
	        initialFrameHeight:300,  //初始化编辑器高度,默认320
	        autoClearinitialContent:false  //是否自动清除编辑器初始内容
	     };
		UE.getEditor('editor',option);
		function cancle(){
			window.location = "${basePath}message";
		}
	</script>
</body>
</html>
